home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: leeds.ac.uk!news
- From: csyamc@scs.leeds.ac.uk (A M Casey)
- Subject: calloc help needed
- Message-ID: <1996Feb15.125431.7751@leeds.ac.uk>
- NNTP-Posting-Host: csgi37.leeds.ac.uk
- Organization: The University of Leeds, School of Computer Studies
- Date: Thu, 15 Feb 1996 12:54:31 +0000 (GMT)
-
- I'm trying to allocate enough memory for an array of strings, defined as
- char * MyArray[20].
- the only manual entry I have for calloc says that it needs two values, the
- number of elements, and the size of each, but how do I actually use it?
-
- MyArray = calloc(20,50);
-
- doesnt work, as far as I can tell calloc returns an int.
-
- ANy help would be greatly appreciated
-
- ANdy
-